package cn.com.nes.site.controller.system.vo;

import cn.com.nes.site.entity.vo.BaseVO;
import cn.com.nes.site.service.system.user.bo.QueryRepairUsersBO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import javax.validation.constraints.NotNull;

@Data
public class QueryRepairUserVO extends BaseVO {

    /**
     * 项目ID或UUID
     */
    private String projectIdOrUuid;

    /**
     * 部门ID
     */
    private String departmentId;
    @NotNull(message = "公司id不能为空")
    private String companyId;

    public QueryRepairUsersBO convertToBo() {
        QueryRepairUsersBO bo = new QueryRepairUsersBO();
        BeanUtils.copyProperties(this, bo);
        return bo;
    }

}
